package com.example.test2application;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import android.app.Application;

public class CustomApplication extends Application {
	
	private List<EventModel> events;
	private EventModel event;
	
	@Override
	public void onCreate() {
		super.onCreate();
	
		events = new ArrayList<EventModel>();
		events.add(new EventModel("title 1", "1", new Date(2013, 01, 20), "description of event 1"));
		events.add(new EventModel("title 2", "1", new Date(2013, 01, 22), "description of event 2"));
		events.add(new EventModel("title 3", "1", new Date(2013, 01, 24), "description of event 3"));
		events.add(new EventModel("title 4", "2", new Date(2013, 02, 20), "description of event 4"));
		events.add(new EventModel("title 5", "2", new Date(2013, 02, 22), "description of event 5"));
		events.add(new EventModel("title 6", "2", new Date(2013, 02, 24), "description of event 6"));
		events.add(new EventModel("title 7", "3", new Date(2013, 03, 20), "description of event 7"));
		events.add(new EventModel("title 8", "3", new Date(2013, 03, 22), "description of event 8"));
		events.add(new EventModel("title 9", "3", new Date(2013, 03, 24), "description of event 9"));
		events.add(new EventModel("title 10", "4", new Date(2013, 04, 20), "description of event 10"));
	}

	public List<EventModel> getEvents() {
		return events;
	}
	
	public EventModel getEvent() {
		return event;
	}

	public void setEvent(EventModel event) {
		this.event = event;
	}

	@Override
	public void onLowMemory() {
		// TODO Auto-generated method stub
		super.onLowMemory();
	}

}
